<?php
return array(
	'attributeLabels' => array(
		'items.goods.profile.airlines' => '起飞机场',
		'items.goods.profile.aircraft_type' => '机型',
		'items.goods.profile.flight' => '航班',
		'items.goods.profile.accommodation' => '舱位',
		'items.goods.profile.departure_time' => '起飞时间',
	),
	
	'defaultScope' => array(
		'condition' => "object_type = 'OrderTicket'",
	),
	'relations' => array(
		'profile' => array(CActiveRecord::HAS_ONE, 'OrderAddonTicket', 'order_id'),
		'travelers' => array(CActiveRecord::HAS_MANY, 'OrderTicketInfo', 'order_id'),
		'addon' => array(CActiveRecord::HAS_ONE,'OrderAddonTicket','order_id')
	),
	'cascade' => array(
		'travelers','addon'
	),
//	'rules' => array(
//		array('travelers', 'coms.validators.order.TravelerValidator'),
//	),
	'_import' => array(
		array('*', 'models.Order//*'),
	),
);